<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>

<rich:panel header="Agreement Installment Reschedule">
	<h:panelGrid ><h:outputText value="#{errorBean.errorMessage}" styleClass="error"></h:outputText></h:panelGrid>
 
	<t:panelGrid columns="2">
		<h:outputLabel value="#{messages['member.name.label']}" styleClass="standardText_Label" />
		<h:outputText value="#{adminAgreementRescheduleBean.member.name}" styleClass="standardText" />
		
		<h:outputLabel value="#{messages['member.type']}" styleClass="standardText_Label" />
		<h:outputText value="#{adminAgreementRescheduleBean.member.memberTypeLabel}" styleClass="standardText" />

		<h:outputText value="#{messages['agreement.no']}" styleClass="standardText_Label" />
		<h:outputText value="#{adminAgreementRescheduleBean.agreement.agreetmentNo}" styleClass="standardText" />
		
		<h:outputText value="#{messages['membership']}" styleClass="standardText_Label" />
		<h:outputText value="#{adminAgreementRescheduleBean.agreement.membership.name}" styleClass="standardText" />

		<h:outputLabel value="#{messages['membership.no.label']}" styleClass="standardText_Label" />
		<h:outputText value="#{adminAgreementRescheduleBean.member.membershipNo}"styleClass="standardText" />
		
		<h:outputLabel value="Installed Month" styleClass="standardText_Label" />
		<h:outputText value="#{adminAgreementRescheduleBean.agreement.memberScheduleScheme.installedMonth}"styleClass="standardText" />
		
		<h:outputLabel value="Outstanding" styleClass="standardText_Label" />
		<h:outputText value="#{adminAgreementRescheduleBean.outstanding}"styleClass="standardText" />
		
		<h:outputLabel value="Total Price" styleClass="standardText_Label" />
		<h:outputText value="#{adminAgreementRescheduleBean.agreement.memberScheduleScheme.totalPrice}"styleClass="standardText" />
		
		<h:outputLabel value="Interest Rate" styleClass="standardText_Label" />
		<h:outputText value="#{adminAgreementRescheduleBean.agreement.memberScheduleScheme.interestRate}"styleClass="standardText" />
		
		<h:panelGroup>
			<h:outputText value="*" styleClass="standardText_Mandatory" />
			<h:outputLabel for="Scheme" value="Installment Scheme" styleClass="standardText_Label" />
		</h:panelGroup>
		
		<t:selectOneMenu id="Scheme" styleClass="standardText" value="#{adminAgreementRescheduleBean.installmentSchemaId}" required="true">
			<f:selectItem itemLabel="#{messages['please.select']}" itemValue="" />
			<f:selectItems value="#{adminAgreementRescheduleBean.selectItemSchedule}"/>
		</t:selectOneMenu>
			
	</t:panelGrid>
	
	<rich:spacer height="10" />
	
	<rich:spacer height="30" />
	<t:panelGrid columns="1">
		<h:commandButton value="Reschedule" styleClass="button" action="#{adminAgreementRescheduleBean.submitAction}"  ></h:commandButton>
 
	</t:panelGrid>
            
</rich:panel>
